package com.example.myfirstgame.helper;

import android.app.Activity;
import android.content.Context;

public class DataInstance {
	
	private static DataInstance instance = null;
	private Context appContext = null;
	private float gameObjectScalingFactor = 1f;
	private boolean debugOn = true;
	private Activity mainActivity = null;

	protected DataInstance(){};
	
	public static DataInstance getInstance(){
		if (instance == null){
			instance = new DataInstance();
		}
		return instance;
	}
	
	public Context getAppContext() {
		return appContext;
	}

	public void setAppContext(Context appContext) {
		this.appContext = appContext;
	}
	
	public float getGameObjectScalingFactor() {
		return gameObjectScalingFactor;
	}

	public void setGameObjectScalingFactor(float gameObjectScalingFactor) {
		this.gameObjectScalingFactor = gameObjectScalingFactor;
	}

	public boolean isDebugOn() {
		return debugOn;
	}

	public void setDebugOn(boolean debugOn) {
		this.debugOn = debugOn;
	}

	public Activity getMainActivity() {
		return mainActivity;
	}

	public void setMainActivity(Activity mainActivity) {
		this.mainActivity = mainActivity;
	}
	
}
